﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataEditor.DataLayer;

namespace DataEditor.ViewModels
{
    public class IndicatorTypeItemViewModel : BaseDataItemViewModel
    {
        INDICATOR_TYPE _model;

        #region Constructors

        public IndicatorTypeItemViewModel(INDICATOR_TYPE Model)
            : base(Model.IsValid, Model.ValidFrom, Model.ValidTo, Model.ID)
        {
            _model = Model;
        }

        #endregion

        #region Properties

        public INDICATOR_TYPE Model
        {
            get
            {
                return _model;
            }
        }

        public String Name
        {
            get { return _model.NAME; }
            set
            {
                _model.NAME = value;
                NotifyOfPropertyChange(() => Name);
            }
        }
        
        public String Description
        {
            get { return _model.DESCRIPTION; }
            set
            {
                _model.DESCRIPTION = value;
                NotifyOfPropertyChange(() => Description);
            }
        }


        #endregion

        #region Action/methods



        #endregion

    }
}
